﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Csharp结业设计
{
    public partial class admin : Form
    {
        //全局变量
        admin_box1_add add = new admin_box1_add();
        query_delete qd = new query_delete();
        Update up = new Update();
        Updata_teacher uptea = new Updata_teacher();
        Teacher_box1 box2 = new Teacher_box1();
        admin_box2_add addstu = new admin_box2_add();
        quary_delete_student qudstu = new quary_delete_student();
        public admin()
        {
            InitializeComponent();
        }

        private void 教师信息添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            add.Show();
        }

        private void 教师信息查询ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            qd.Show();
        }

        private void 教师信息添加ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            qd.Show();
        }

        private void 教师信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            uptea.Show();
        }

        private void 教师信息查询ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            up.Show();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void 学生信息添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            addstu.Show();
        }

        private void 学生信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            box2.Show();
        }

        private void 学生信息删除ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            qudstu.Show();
        }
    }
}
